package com.llyb.service;

import org.springframework.ai.tool.annotation.Tool;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;

public class DateTimeTools {

    /**
     * returnDirect = false
     *  false 表示返回给模型
     */
    @Tool(description = "获取当前时间",returnDirect = false)
    public String getNowTime(){
        return LocalDateTime.now().toString();
    }

    @Tool(description = "获取一张图片",returnDirect = false)
    public ArrayList<String> getPhoto(){
        ArrayList<String> list = new ArrayList<>(10);

        list.add("枣树的照片");
        list.add("学校的照片");
        list.add("笔记本电脑的照片");

        return list;
    }
}
